﻿using System;
using System.Windows;

namespace Jacobi.Seesmic.FeedReader.FeedItemView
{
    /// <summary>
    /// Manages extracting <see cref="DataTemplate"/>s from resources.
    /// </summary>
    internal static class FeedItemViews
    {
        /// <summary>
        /// Initializes the resource dictionary.
        /// </summary>
        private static readonly ResourceDictionary _templates = new ResourceDictionary
        {
            Source = new Uri("/Jacobi.Seesmic.FeedReader;component/FeedItemView/FeedItemView.xaml", UriKind.Relative)
        };

        /// <summary>
        /// Gets the default feed item view from the resources.
        /// </summary>
        public static DataTemplate DefaultView
        {
            get { return (DataTemplate)_templates["DefaultFeedItemView"]; }
        }
    }
}